$OpenBSD: patch-third_party_webrtc_base_physicalsocketserver_cc,v 1.3 2015/05/26 17:37:40 robert Exp $
--- third_party/webrtc/base/physicalsocketserver.cc.orig.port	Thu May 14 00:36:29 2015
+++ third_party/webrtc/base/physicalsocketserver.cc	Wed May 20 08:34:56 2015
@@ -242,7 +242,7 @@ class PhysicalSocket : public AsyncSocket, public sigs
     socklen_t optlen = sizeof(*value);
     int ret = ::getsockopt(s_, slevel, sopt, (SockOptArg)value, &optlen);
     if (ret != -1 && opt == OPT_DONTFRAGMENT) {
-#if defined(WEBRTC_LINUX) && !defined(WEBRTC_ANDROID)
+#if defined(WEBRTC_LINUX) && !defined(WEBRTC_ANDROID) && !defined(WEBRTC_BSD)
       *value = (*value != IP_PMTUDISC_DONT) ? 1 : 0;
 #endif
     }
@@ -255,7 +255,7 @@ class PhysicalSocket : public AsyncSocket, public sigs
     if (TranslateOption(opt, &slevel, &sopt) == -1)
       return -1;
     if (opt == OPT_DONTFRAGMENT) {
-#if defined(WEBRTC_LINUX) && !defined(WEBRTC_ANDROID)
+#if defined(WEBRTC_LINUX) && !defined(WEBRTC_ANDROID) && !defined(WEBRTC_BSD)
       value = (value) ? IP_PMTUDISC_DO : IP_PMTUDISC_DONT;
 #endif
     }
@@ -507,10 +507,10 @@ class PhysicalSocket : public AsyncSocket, public sigs
         *slevel = IPPROTO_IP;
         *sopt = IP_DONTFRAGMENT;
         break;
-#elif defined(WEBRTC_MAC) || defined(BSD) || defined(__native_client__)
+#elif defined(WEBRTC_MAC) || defined(WEBRTC_BSD) || defined(__native_client__)
         LOG(LS_WARNING) << "Socket::OPT_DONTFRAGMENT not supported.";
         return -1;
-#elif defined(WEBRTC_POSIX)
+#elif defined(WEBRTC_POSIX) && !defined(WEBRTC_BSD)
         *slevel = IPPROTO_IP;
         *sopt = IP_MTU_DISCOVER;
         break;
